package com.madrivergroup.mamatodo.dao;

import java.util.List;

import com.madrivergroup.mamatodo.tasks.Task;

public interface ITaskDao {
	
	/**
	 * Save the current Task
	 * @param t
	 */
	public void saveTask( Task t );
	
	/**
	 * Remove a particular Task
	 * @param t
	 */
	public void removeTask( Task t );
	
	/**
	 * Returns all list of Tasks
	 * @return List of Task objects
	 */
	public List<Task> getTaskList();
	
	/**
	 * Returns all list of Tasks based on the complete flag being passed in.
	 * @return List of Task objects
	 */
	public List<Task> getTasksByComplete( boolean v );
	
	/**
	 * Saves a list of Task objects
	 * @param l
	 */
	public void saveTaskList( List<Task> l );
	
	/**
	 * Add a new task to our list which is like saving a Task
	 * @param t
	 */
	public void addTask( Task t );

}
